export default {
  name: 'RouteView',
  render () {
    const { title,header,keep } = this.$route.meta
    console.log({ title,header,keep })
    const inKeep = (
      <keep-alive>
        <router-view />
      </keep-alive>
    )
    
    const havetitle = (
      <div>
        <el-page-header
         class='bg-green-100 px-4  h-16 items-center'
         content={title}
         on-back={() => {
           // console.log(this.$router.getRoutes())
           // this.$router.push({name:'competition'})
           this.$router.back(-1)
          }} >
        </el-page-header>
        <router-view></router-view>
      </div>
    )
    const only = (
      <router-view />
    )
    console.log({keep,header})
    return keep? inKeep:(header?havetitle:only)
  }
}